//
//  GruesAppDelegate.m
//  Grues
//
//  Created by Miquel Viladomat on 14/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ZonaBlavaAppDelegate.h"
#import "Login.h"
@implementation ZonaBlavaAppDelegate

@synthesize window = _window, TabBarController;
@synthesize login=_login;
@synthesize marcav;
@synthesize modelv;
@synthesize matriculav;
@synthesize colorv;
@synthesize posiciov;
@synthesize posicio2v;
@synthesize motiuv;
@synthesize codimotiuv;
@synthesize foto1v;
@synthesize foto2v;
@synthesize foto3v;
@synthesize foto4v;
@synthesize latv;
@synthesize longv;
@synthesize codidenunciav;
@synthesize codiagentv;
@synthesize datav;
@synthesize horav;
@synthesize estat;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    
    self.window.rootViewController = self.TabBarController; 
    Login *loginViewController = [[Login alloc] initWithNibName:@"Login" bundle:nil]; 
    [self.TabBarController presentModalViewController:loginViewController animated:YES]; 
    [self.window makeKeyAndVisible];
   
    return YES;
}
-(void)loginViewControllerDidFinish:(Login *)login {
    [self.TabBarController dismissModalViewControllerAnimated:NO];
}
- (void)applicationWillResignActive:(UIApplication *)application
{
   
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
   
}

- (void)applicationWillTerminate:(UIApplication *)application
{
    
}

- (void)dealloc
{
    [_window release];
    [super dealloc];
}

@end
